package edu.sctu.zhuyingzhi.month201506.day20150608.factoryMode.simperFactory;

/**
 * Created by user13 on 2015/6/8.
 */
public class Factory {
    public void creatVivo(String type) {

        switch (type) {
            case "VivoX11":

                VivoX11 vivoX11 = new VivoX11();

                break;
            case "VivoY13":
                new VivoY13();
                break;
            default:
                System.out.println("没有这产品");
        }
    }
}
